package cn.edu.neusoft.yuejian_02.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by jj on 2017/10/9.
 */

public class MatchBean implements Parcelable {


    /**
     * match_id : 1
     * matchname : 划船
     * matchaddress : 星海
     * matchtime : 2017-10-27
     * matchphoto : 1.jpg
     * matchintro : 划呀划呀划呀
     */

    private int match_id;
    private String matchname;
    private String matchaddress;
    private String matchtime;
    private String matchphoto;
    private String matchintro;

    protected MatchBean(Parcel in) {
        match_id = in.readInt();
        matchname = in.readString();
        matchaddress = in.readString();
        matchtime = in.readString();
        matchphoto = in.readString();
        matchintro = in.readString();
    }

    public static final Creator<MatchBean> CREATOR = new Creator<MatchBean>() {
        @Override
        public MatchBean createFromParcel(Parcel in) {
            return new MatchBean(in);
        }

        @Override
        public MatchBean[] newArray(int size) {
            return new MatchBean[size];
        }
    };

    public void setMatch_id(int match_id) {
        this.match_id = match_id;
    }

    public void setMatchname(String matchname) {
        this.matchname = matchname;
    }

    public void setMatchaddress(String matchaddress) {
        this.matchaddress = matchaddress;
    }

    public void setMatchtime(String matchtime) {
        this.matchtime = matchtime;
    }

    public void setMatchphoto(String matchphoto) {
        this.matchphoto = matchphoto;
    }

    public void setMatchintro(String matchintro) {
        this.matchintro = matchintro;
    }

    public int getMatch_id() {
        return match_id;
    }

    public String getMatchname() {
        return matchname;
    }

    public String getMatchaddress() {
        return matchaddress;
    }

    public String getMatchtime() {
        return matchtime;
    }

    public String getMatchphoto() {
        return matchphoto;
    }

    public String getMatchintro() {
        return matchintro;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeInt(match_id);
        parcel.writeString(matchname);
        parcel.writeString(matchaddress);
        parcel.writeString(matchtime);
        parcel.writeString(matchphoto);
        parcel.writeString(matchintro);
    }
}
